<?php
if ($is_ctcp && ($command == 'PRIVMSG')) // Make sure it's a CTCP
{
	switch ($ctcp_command) // How easy is this?
	{
		case 'VERSION':
			ctcp_reply("VERSION Ruffy v$version as $nickname", $source_nick);
			break;
		case 'PING':
			ctcp_reply('PING ' . $ctcp_args[1], $source_nick);
			break;
		case 'TIME':
			ctcp_reply('TIME ' . date("F j  g:i a Y", time()), $source_nick);
			break;
		case 'FINGER':
			ctcp_reply('FINGER Ewwwwwww... I dunno what to put here... maybe you want to VERSION me? :)');
			break;
		case 'ACTION':
			switch ($ctcp_msg)
			{
				case "ACTION eats $nickname":
					action('tastes crunchy');
					break;
				case "ACTION kicks $nickname":
					msg('ow');
					break;
				case "ACTION hugs $nickname":
					action("hugs $source_nick");
					break;
				case "ACTION kills $nickname":
					action('dies');
					break;
			}
			break;
	}
}
?>